package com.github.loveshorn.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Stephen Liu
 * @since 2017/7/21
 */
@Controller
@RequestMapping("/demo")
public class DemoController {

    @ResponseBody
    @GetMapping("/show")
    public String show() {
        String username = "jackson";
        return username;
    }
}
